/**
 * Motor
 *
 * meer uitleg in motor.cpp
 *
 * @author Jasper Nevens <jasper@nevensit.be>
 * @date    19/02/11
 */
#ifndef MOTOR_H_
#define	MOTOR_H_

#define COMLEN			4

#define	MOTOR_BRAKE		0
#define MOTOR_FORWARD	2
#define	MOTOR_REVERSE	1
#define	MOTORS_SET		0xD0
#define MOTORS_ACC		0xE0

#define	MAXV			0x40
#define MINV			0x20

//#include "motorSturing.h"

// Robot class definition
class Motors
{
	public:
		// constructor		
		Motors(int prt,int br);
		~Motors(void);

		void stopMotors(void);
		void setSpeed(int spd1,int dir1,int spd2,int dir2);
		void setSpeedAcc(int spd1,int dir1,int spd2,int dir2);
		void setParam(unsigned char param,unsigned char value);
	
	private:
	    int poort;
	    int baudrate;
	    int direction;
}; 

#endif /* MOTOR_H_ */
